package suites.queue.mock {
	import org.splink.library.queue.QEvent;
	import org.splink.library.queue.Qable;

	/**
	 * @author Max Kugland
	 */
	public class ImmediateQable extends Qable {
		
		public function ImmediateQable(id : String = "ImmediateQable") {
			super(id);
		}

		override protected function doStart() : void {
			var progressEvent : QEvent = new QEvent(this, QEvent.PROGRESS, id);
			progressEvent.progress.current = 1;
			progressEvent.progress.total = 1;
			distribute(progressEvent);
			complete();
		}
		
		public function toString() : String {
			return "ImmediateQable: " + id;
		}

		override protected function doStop() : void {
		}

		override protected function doReset() : void {
		}
	}
}
